package com.aspose.cells;

public class ConnectionParameterCollection extends CollectionBase {
   ExternalConnection b;

   ConnectionParameterCollection(ExternalConnection conn) {
      this.b = conn;
   }

   public ConnectionParameter get(int index) {
      return index >= 0 && index < this.a.size() ? (ConnectionParameter)this.a.get(index) : null;
   }

   public void set(int index, ConnectionParameter value) {
      this.a.set(index, value);
   }

   int a(ConnectionParameter var1) {
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var1);
      return this.getCount() - 1;
   }

   public ConnectionParameter get(String connParamName) {
      for(int var2 = 0; var2 < this.getCount(); ++var2) {
         ConnectionParameter var3 = (ConnectionParameter)this.a.get(var2);
         if (com.aspose.cells.b.a.zv.b(var3.getName(), connParamName)) {
            return var3;
         }
      }

      return null;
   }

   void a(ConnectionParameterCollection var1) {
      ConnectionParameter var2 = null;

      for(int var3 = 0; var3 < var1.getCount(); ++var3) {
         var2 = new ConnectionParameter();
         var2.a(var1.get(var3));
         this.a(var2);
      }

   }
}
